import './assets/main.css'
import axios from 'axios'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'
import router from './router'
import myPinnia from 'pinia-plugin-persistedstate'
// 引入全局CSS  main.ts





const pinia = createPinia()

// // import { hiPrintPlugin } from 'vue-plugin-hiprint'

// // hiPrintPlugin.disAutoConnect(); // 取消自动连接直接打印客户端///打印
console.log('环境变量：', import.meta.env);

// 添加JWT token信息
axios.defaults.headers.common["Authorization"] = "Bearer " + window.localStorage.getItem("token")

const app = createApp(App)
// app.use(hiPrintPlugin, '$pluginName');
app.use(createPinia().use(myPinnia))
app.use(router)

app.use(ElementPlus, {
  locale: zhCn,
})

app.mount('#app')
